<?php

namespace app\manystore\model;

use think\Model;

class CampusGoodsSpec extends Model
{
    // 表名
    protected $name = 'campus_goods_spec';

    public function campusgoods()
    {
        return $this->belongsTo('CampusGoods','id','goods_id')->field('id,spec_name,stock');
    }

    public function goods()
    {
        return $this->belongsTo('campus_goods','id','goods_id')->field('id,spec_name,stock');
    }
    
}
